package chain.bimpl;

import java.util.Arrays;
import java.util.List;

public class Employee extends AbstractHandler {
    //模拟数据
    private static final List<String> stringList = Arrays.asList("张三","张三老婆");
    @Override
    public List<String> doChain(int money) {

        if(money<300){
            return stringList;
        }

        if(nextHandler!=null){
            return nextHandler.doChain(money);
        }

        return null;
    }
}
